package cn.regexp.common.core.exception;

import cn.regexp.common.core.web.CodeMsg;
import lombok.Getter;
import lombok.Setter;

/**
 * @author Regexpei
 * @date 2024/7/3 22:18
 * @description 业务异常类
 */
@Setter
@Getter
public class BusinessException extends RuntimeException {

    private CodeMsg codeMsg;

    public BusinessException(CodeMsg codeMsg) {
        this.codeMsg = codeMsg;
    }

}